/*
 * @Author: GKN
 * @Date: 2023-07-25 00:25:55
 * @LastEditTime: 2024-01-11 10:07:56
 * @LastEditors: GKN
 * @Description: 
 * @FilePath: \mod\src\main.js
 * 可以输入预定的版权声明、个性签名、空行等
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from "@/router/index";
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { ElMessage,ElNotification } from 'element-plus'
import {ElMesage} from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import vue3videoPlay from 'vue3-video-play' // 引入组件
import 'vue3-video-play/dist/style.css' // 引入css
import '@/view/components/animate.css'
// 公共图片处理组件
import imgview from './view/components/imgview.vue';
// 广告图片组件
import adImgView from './view/components/adImgView.vue';
// 文件格式图标组件
import fileImg from './view/components/fileImg.vue';
// 文件列表组件
import fileView from './view/components/fileView.vue';
// 空数据
import myEmpty from './view/components/myEmpty.vue';
// 分页
import myPage from './view/components/myPage.vue';
// 加载动画
import mySpin from './view/components/mySpin.vue';
import store from './store/index.js'
import httpApi from '@/api/http'
import api from '@/api/api'
import CryptoJS from 'crypto-js';
import publicMethods from '@/utils/utils'
const app = createApp(App)
app.config.globalProperties.$http = httpApi
app.config.globalProperties.$api = api
app.config.globalProperties.$comJs = publicMethods
app.component('imgView', imgview);
app.component('fileImg', fileImg);
app.component('fileView', fileView);
app.component('myEmpty', myEmpty);
app.component('myPage', myPage);
app.component('adImgView', adImgView);
app.component('mySpin', mySpin);
app.use(ElementPlus, {
    locale: zhCn,
  })
app.use(store).use(ElementPlus).use(vue3videoPlay).use(CryptoJS).use(router).mount('#app')
